﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DALScolarite 
{
    public partial class scolarite_eltetude
    {
        uvtmoyEntities ent;
        public List<scolarite_eltetude> eltetudeunite(string idunite)
        {
            ent = new uvtmoyEntities();
            var query = ( from s2 in ent.scolarite_eltetude where s2.idunite == idunite   
                         select s2);
            if (query.Any())
            {

                return query.Distinct().ToList();
            }
            else
            {
                return null;
            }
        }
    }
}
